Destructuring assignement objects JavaScript